<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../test2.js">
        // 不允许写东西
        
    </script>
 
</head>
<body>
    <div>
        <input type="text" id="ename" />
    </div>
    <div>
        <!-- 事件驱动onclick  触发 abc()函数的调用 -->
        <input type="button" onclick="abc(); //alert(ename.value)" value="点一下" />
    </div>

</body>
</html>